<template>
  <!--问题新增-->
  <div class="wtxz">
    <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="60px">
      <div class="form-small-title">
        <el-divider direction="vertical" class="form-divider"></el-divider>
        <span class="form-small-font">基本信息</span>
      </div>
      <el-row style="margin-top: 25px">
        <el-col :span="12">
          <el-form-item label="问题名称：" label-width="90px">
            <el-input v-model="ruleForm.wtmc" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="项目名称：" label-width="90px">
            <el-input v-model="ruleForm.xmmc" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="6">
          <el-form-item label="问题类型：" label-width="90px">
            <el-select v-model="ruleForm.wtlx" placeholder="请选择">
              <el-option v-for="item in problemTypesOptions" :key="item.value" :label="item.label"
                         :value="item.value"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="负责人：" label-width="90px">
            <el-input v-model="ruleForm.fzr" placeholder="请输入" suffix-icon="el-icon-user"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="新增日期：" label-width="90px">
            <el-date-picker
              v-model="ruleForm.xzrq"
              type="date"
              placeholder="选择日期"
              style="width: 100%">
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="问题状态：" label-width="90px">
            <el-input v-model="ruleForm.wtzt" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-form-item label="问题说明：" label-width="90px">
          <el-input v-model="ruleForm.shuoming" placeholder="请输入"></el-input>
        </el-form-item>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "wtxz",
  data() {
    return {
      ruleForm: {},
      rules: {},
      problemTypesOptions: []
    }
  }
}
</script>

<style scoped lang="scss">
.wtxz ::v-deep{
  .el-input__inner {
    border: 0 !important;
    border-bottom: 1px solid #DCDFE6 !important;
    border-radius: 0 !important;
    padding-right: 20px !important;
  }
}

.form-small-title {
  border-bottom: solid 2px #C0C4CC;
  padding-bottom: 10px;
  margin-top: 20px;
}

.form-divider {
  width: 5px;
  height: 26px;
  background: rgb(66, 185, 131);
}

.form-small-font {
  font-size: 19px;
  font-weight: 600;
  color: #303133;
}
</style>
